package org.lwd.datalink.config.properties;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: weidong.lin
 * @Description: 全局配置类
 * @Date: create in 2024/4/1 14:23
 */
@Getter
@Component
public class WorkerProperties {
    @Value("${datalink.bootMode}")
    private String bootMode;

    @Value("${datalink.zookeeper.servers}")
    private String zkServers;

    @Value("${datalink.zookeeper.session.timeout.ms}")
    private int zkSessionTimeout;

    @Value("${datalink.zookeeper.connection.timeout.ms}")
    private int zkConnectionTimeout;

    @Value("${datalink.zookeeper.root}")
    private String zkRoot;

    @Value("${datalink.probe.blackList}")
    private String probeBlackList;

    @Value("${datalink.classloader.type}")
    private String classloaderType;

    @Value("${bootstrap.servers}")
    private String bootstrapServers;
}
